import request from '@/utils/request'

// 查询重量金额管理列表
export function listWeightAmount(query) {
  return request({
    url: '/backStage/weightAmount/list',
    method: 'get',
    params: query
  })
}

// 查询重量金额管理详细
export function getWeightAmount(id) {
  return request({
    url: '/backStage/weightAmount/' + id,
    method: 'get'
  })
}

// 新增重量金额管理
export function addWeightAmount(data) {
  return request({
    url: '/backStage/weightAmount',
    method: 'post',
    data: data
  })
}

// 修改重量金额管理
export function updateWeightAmount(data) {
  return request({
    url: '/backStage/weightAmount',
    method: 'put',
    data: data
  })
}

// 删除重量金额管理
export function delWeightAmount(id) {
  return request({
    url: '/backStage/weightAmount/' + id,
    method: 'delete'
  })
}
